﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="QuestionMT.aspx.cs" Inherits="Admin_QuestionMT" Theme="PX" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<title></title>
</head>
<body>
	<form id="form1" runat="server">
	<div class="ResultTable">
		<asp:GridView runat="server" ID="Grv" SkinID="QueryResult">
			<Columns>
				<asp:TemplateField HeaderText="序号" HeaderStyle-Width="30">
					<ItemTemplate>
						<%# Grv.PageIndex*Grv.PageSize+Grv.Rows.Count+1 %>
					</ItemTemplate>
				</asp:TemplateField>
				<asp:BoundField DataField="AskerName" HeaderText="提问者" HeaderStyle-Width="80"/>
				<asp:BoundField DataField="Content" HeaderText="问题" />
				<asp:BoundField DataField="DateTime" HeaderText="提问时间" HeaderStyle-Width="70"/>
				<asp:BoundField DataField="ExpertName" HeaderText="大师" HeaderStyle-Width="80"/>
				<asp:BoundField DataField="HaveAnswerName" HeaderText="是否回复" HeaderStyle-Width="80"/>
				<asp:TemplateField HeaderStyle-Width="50">
					<ItemTemplate>
						<asp:LinkButton runat="server" ID="LBtnDelete" Text="删除" OnClientClick="javascript:return confirm('确定要删除吗？');" CommandArgument='<%# Bind("ID") %>' CommandName="Delete"></asp:LinkButton>
					</ItemTemplate>
				</asp:TemplateField>
			</Columns>
		</asp:GridView>
	</div>

	<div class="SecondButtom">
		<div class="Page">
			<asp:Label runat="server" ID="LabPageNumber"></asp:Label>
			<asp:LinkButton ID="LBtnFirst" runat="server" Text="第一页"></asp:LinkButton>
			<asp:LinkButton ID="LBtnForward" runat="server" Text="上一页"></asp:LinkButton>
			<asp:LinkButton ID="LBtnNext" runat="server" Text="下一页"></asp:LinkButton>
			<asp:LinkButton ID="LBtnLast" runat="server" Text="最后一页"></asp:LinkButton>
		</div>
	</div>
	</form>
</body>
</html>
